package com.zhanggm.ry.cart.feign;

import com.zhanggm.ry.cart.model.Sku;
import org.bouncycastle.math.ec.custom.sec.SecT113Field;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Collection;
import java.util.List;
import java.util.Set;

@FeignClient("ry-product")
public interface ProductFeignClient {

    @PostMapping("/product/getSkuByIds")
    public List<Sku> getSkuByIds(@RequestBody Set<Long> ids);

}
